package com.fh.controller;

import com.fh.model.Orders;
import com.fh.service.OrderCloseService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("orderclose")
public class OrderCloseController {


    @Resource
    private OrderCloseService orderCloseService;


    @PutMapping("close")
    public  int  close(@RequestParam("orderId") String orderId){
        return  orderCloseService.close(orderId);
    }




}
